# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-eth-typing
_pkgname=eth-typing
pkgver=5.2.1
pkgrel=1
pkgdesc='Common type annotations for ethereum python packages.'
url='https://pypi.org/project/eth-typing/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('805a96b6110c327a2cfcf658f3b17e6e56ae4e087a0e6996f32b7356ef9a67a7d5a4a562a903867a7b3f897f38448c9ae560c045f9e5523c1de48711ec307a00')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

